﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DoAn.admin
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        private DataClassesDoAnDataContext dc = new DataClassesDoAnDataContext();

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ButtonSave_Click(object sender, EventArgs e)
        {
            hangdienthoai hdt = new hangdienthoai();
            hdt.hienthi = this.hienthi.Checked;
            hdt.tenhang = this.tenhang.Value;
            this.dc.hangdienthoais.InsertOnSubmit(hdt);
            this.dc.SubmitChanges();
            Response.Redirect("DanhSachHangDienThoai.aspx");
        }

        

    }
}
